﻿using System;

namespace XXX.Models.AS
{
    public class VendorImport
    {

        /// <summary>
        /// 
        /// </summary>
        public string cVenCode { get; set; }

        /// <summary>
        /// 北京燕东微电子科技有限公司
        /// </summary>
        public string cVenName { get; set; }

        /// <summary>
        /// 北京燕东微电子科技有限公司
        /// </summary>
        public string cVenAbbName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string cVCCode { get; set; }

        /// <summary>
        /// 北京市亦庄经济开发区经海四路51号
        /// </summary>
        public string cVenAddress { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string dVenDevDate { get; set; }
        public string dEndDate { get; set; }
        /// <summary>
        /// 唐晓琦
        /// </summary>
        public string cVenPerson { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string cVenHand { get; set; }
        public string cVenPostCode { get; set; }
        public string cVenRegCode { get; set; }
        public string cVenBank { get; set; }
        public string cVenAccount { get; set; }
        public string cVenLPerson { get; set; }
        public string cVenPhone { get; set; }
        public string cVenFax { get; set; }
        public string cVenEmail { get; set; }

        ///// <summary>
        ///// 信用期限
        ///// </summary>
        //public string iVenCreDate { get; set; }


        /// <summary>
        /// 收付款协议
        /// </summary>
        public string cVenPUOMProtocol { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public string bVenCargo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string bProxyForeign { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string bVenService { get; set; }

        /// <summary>
        /// 人民币
        /// </summary>
        public string cVenExch_name { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string iVenTaxRate { get; set; }

        public string cCreatePerson { get; set; }

        public string cModifyPerson { get; set; }



    }
     
        /// <summary>
        /// 写入U8供应商信息的类
        /// </summary>
        public class AS_Vendor
        {
            public string cVenCode { get; set; }
            public bool ShouldSerialivecVenCode() => !string.IsNullOrEmpty(cVenCode);

            public string cVenName { get; set; }
            public bool ShouldSerialivecVenName() => !string.IsNullOrEmpty(cVenName);

            public string cVenAbbName { get; set; }
            public bool ShouldSerialivecVenAbbName() => !string.IsNullOrEmpty(cVenAbbName);

            public string cVCCode { get; set; }
            public bool ShouldSerialivecVCCode() => !string.IsNullOrEmpty(cVCCode);

            public string cVenAddress { get; set; }
            public bool ShouldSerialivecVenAddress() => !string.IsNullOrEmpty(cVenAddress);

            public string dVenDevDate { get; set; }
            public bool ShouldSerializedVenDevDate() => !string.IsNullOrEmpty(dVenDevDate);

        public string fRegistFund { get; set; }
        public bool ShouldSerializefRegistFund() => !string.IsNullOrEmpty(fRegistFund);

        public string cVenPerson { get; set; }
            public bool ShouldSerialivecVenPerson() => !string.IsNullOrEmpty(cVenPerson);

            public string cVenHand { get; set; }
            public bool ShouldSerialivecVenHand() => !string.IsNullOrEmpty(cVenHand);

            public string cVenBank { get; set; }
            public bool ShouldSerialivecVenBank() => !string.IsNullOrEmpty(cVenBank);

            public string cVenRegCode { get; set; }
            public bool ShouldSerialivecVenRegCode() => !string.IsNullOrEmpty(cVenRegCode);

            public string cVenAccount { get; set; }
            public bool ShouldSerialivecVenAccount() => !string.IsNullOrEmpty(cVenAccount);

            public string iVenDisRate { get; set; } = "0";

            public string iVenCreLine { get; set; } = "0";

            public string cVenPUOMProtocol { get; set; }
            public bool ShouldSerialivecVenPUOMProtocol() => !string.IsNullOrEmpty(cVenPUOMProtocol);

            public string iVenCreDate { get; set; }
            public bool ShouldSerialivecVenCreDate() => !string.IsNullOrEmpty(iVenCreDate);

            public string dEndDate { get; set; }
            public bool ShouldSerializedEndDate() => !string.IsNullOrEmpty(dEndDate);

            public string cVenHeadCode { get; set; }
            public bool ShouldSerialivecVenHeadCode() => !string.IsNullOrEmpty(cVenHeadCode);

            public string iAPMoney { get; set; } = "0";

            public string iLastMoney { get; set; } = "0";

            public string iLRMoney { get; set; } = "0";

            public string iFrequency { get; set; } = "0";

            public string bVenTax { get; set; }
            public bool ShouldSerialivebVenTax() => !string.IsNullOrEmpty(bVenTax);

            public string bLicenceDate { get; set; }
            public bool ShouldSerialivebLicenceDate() => !string.IsNullOrEmpty(bLicenceDate);

            public string bBusinessDate { get; set; }
            public bool ShouldSerialivebBusinessDate() => !string.IsNullOrEmpty(bBusinessDate);

            public string bProxyDate { get; set; }
            public bool ShouldSerialivebProxyDate() => !string.IsNullOrEmpty(bProxyDate);

            public string bPassGMP { get; set; }
            public bool ShouldSerialivebPassGMP() => !string.IsNullOrEmpty(bPassGMP);

            public string bVenCargo { get; set; }
            public bool ShouldSerialivebVenCargo() => !string.IsNullOrEmpty(bVenCargo);

            public string bProxyForeign { get; set; }
            public bool ShouldSerialivebProxyForeign() => !string.IsNullOrEmpty(bProxyForeign);

            public string bVenService { get; set; }
            public bool ShouldSerialivebVenService() => !string.IsNullOrEmpty(bVenService);

            public string cVenExch_name { get; set; } = "人民币";

            public string iVenGSPType { get; set; }
            public bool ShouldSerialivecVenGSPType() => !string.IsNullOrEmpty(iVenGSPType);

            public string bVenOverseas { get; set; } = "0";

            public string bVenAccPeriodMng { get; set; }
            public bool ShouldSerialivebVenAccPeriodMng() => !string.IsNullOrEmpty(bVenAccPeriodMng);

            public string bVenHomeBranch { get; set; }
            public bool ShouldSerialivebVenHomeBranch() => !string.IsNullOrEmpty(bVenHomeBranch);

            public string iVenTaxRate { get; set; } = "13";

            public string dVenCreateDatetime { get; set; } = DateTime.Now.ToString();
            public bool ShouldSerializedVenCreateDatetime() => !string.IsNullOrEmpty(dVenCreateDatetime);

            public string pubufts { get; set; }
            public bool ShouldSerializepubufts() => !string.IsNullOrEmpty(pubufts);

            public string cCreatePerson { get; set; }
            public bool ShouldSerialivecCreatePerson() => !string.IsNullOrEmpty(cCreatePerson);

            public string cModifyPerson { get; set; }
            public bool ShouldSerialivecModifyPerson() => !string.IsNullOrEmpty(cModifyPerson);

            public string cVenDefine1 { get; set; }
            public bool ShouldSerialivecVenDefine1() => !string.IsNullOrEmpty(cVenDefine1);

            public string cVenDefine2 { get; set; }
            public bool ShouldSerialivecVenDefine2() => !string.IsNullOrEmpty(cVenDefine2);

            public string cVenDefine3 { get; set; }
            public bool ShouldSerialivecVenDefine3() => !string.IsNullOrEmpty(cVenDefine3);

            public string cVenDefine4 { get; set; }
            public bool ShouldSerialivecVenDefine4() => !string.IsNullOrEmpty(cVenDefine4);

            public string cVenDefine5 { get; set; }
            public bool ShouldSerialivecVenDefine5() => !string.IsNullOrEmpty(cVenDefine5);

            public string cVenDefine6 { get; set; }
            public bool ShouldSerialivecVenDefine6() => !string.IsNullOrEmpty(cVenDefine6);

            public string cVenDefine7 { get; set; }
            public bool ShouldSerialivecVenDefine7() => !string.IsNullOrEmpty(cVenDefine7);

            public string cVenDefine8 { get; set; }
            public bool ShouldSerialivecVenDefine8() => !string.IsNullOrEmpty(cVenDefine8);

            public string cVenDefine9 { get; set; }
            public bool ShouldSerialivecVenDefine9() => !string.IsNullOrEmpty(cVenDefine9);

            public string cVenDefine10 { get; set; }
            public bool ShouldSerialivecVenDefine10() => !string.IsNullOrEmpty(cVenDefine10);

            public string cVenDefine11 { get; set; }
            public bool ShouldSerialivecVenDefine11() => !string.IsNullOrEmpty(cVenDefine11);

            public string cVenDefine12 { get; set; }
            public bool ShouldSerialivecVenDefine12() => !string.IsNullOrEmpty(cVenDefine12);

            public string cVenDefine13 { get; set; }
            public bool ShouldSerialivecVenDefine13() => !string.IsNullOrEmpty(cVenDefine13);

            public string cVenDefine14 { get; set; }
            public bool ShouldSerialivecVenDefine14() => !string.IsNullOrEmpty(cVenDefine14);

            public string cVenDefine15 { get; set; }
            public bool ShouldSerialivecVenDefine15() => !string.IsNullOrEmpty(cVenDefine15);

            public string cVenDefine16 { get; set; }
            public bool ShouldSerialivecVenDefine16() => !string.IsNullOrEmpty(cVenDefine16);
        }
    

    //返回消息
    public class VenResult
    {

        public string cVenCode { get; set; }
        public string Result { get; set; }
    }


}
